package com.cn.goodsadmin.dao;



import com.cn.goodsadmin.po.ActionRout;

import java.util.Date;
import java.util.List;

public interface IActionRoutDao {

    /**
     * 更新操作
     *
     * @param t
     */
    void update(ActionRout t) throws Exception;

    /**
     * 删除操作
     *
     * @param t
     */
    void delete(ActionRout t) throws Exception;

    /**
     * 增加操作
     *
     * @param t
     */
    void save(ActionRout t) throws Exception;

    /**
     * @param date
     * @param openid
     * @return
     * @throws Exception
     */
    ActionRout getActionByDate(Date date, String openid, int appid) throws Exception;

    /**
     * 多少天的登陆记录
     * @param day
     * @return
     * @throws Exception
     */
    List<ActionRout> getActionRoutByDay(int day,int appid)throws Exception;

    /**
     * 获取那天的记录
     * @param daytime
     * @return
     * @throws Exception
     */
    long getActionRountByDay(Date daytime,int appid)throws Exception;

    /**
     * 获取这个用户在这个时间段的登陆次数
     * @param beginTime
     * @param endTime
     * @param openid
     * @return
     * @throws Exception
     */
    long  getUserActionRountByBeginTimeAndEndTime(Date beginTime,Date endTime,String openid,int appid)throws Exception;

}
